package com.byit.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author
 */
@TableName("sys_app_version")
@Data
public class SysAppVersion extends Model<SysAppVersion> {


    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 版本代码
     */
    @TableField("code")
    private Integer code;
    /**
     * 更新类型 1.Android 2.IOS
     */
    @TableField("type")
    private Integer type;

    /**
     * 版本号
     */
    @TableField("version")
    private String version;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 下载地址
     */
    @TableField("dPath")
    private String dPath;

    /**
     * 版本更新说明
     */
    @TableField("content")
    private String content;

    /**
     * 调用检查更新量
     */
    @TableField("cout")
    private Long cout;

    /**
     * 发布时间
     */
    @TableField("publish_time")
    private Date publishTime;

    /**
     * 是否强制更新
     */
    @TableField("force_update")
    private Integer forceUpdate;

    /**
     * 操作用户id
     */
    @TableField("operation_id")
    private Long operationId;

    /**
     * 是否删除
     */
    @TableField("is_del")
    private String isDel;
    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "SysAppVersion{" +
                "id=" + id +
                ", code=" + code +
                ", version='" + version + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", dPath='" + dPath + '\'' +
                ", content='" + content + '\'' +
                ", cout=" + cout +
                ", publishTime=" + publishTime +
                ", forceUpdate=" + forceUpdate +
                ", operationId=" + operationId +
                ", isDel='" + isDel + '\'' +
                '}';
    }
}